<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //if
        if (3 > 5) {
            alert('h');
        } else {
            alert('g');
        }

        /*if(){

        }else if{

        }else if{

        }else{
            
        }*/

        //switch
        // key 和 value 必须是===(值和类型都一样)才可以
        switch (key) {
            case value:
                
                break;
        
            default:
                break;
        }
    </script>
</head>

<body>

</body>

</html>